package com.cavy.platform.client;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 唐旭
 * @Date 2018/7/26
 */
@Component
@ConfigurationProperties(prefix = "cavy")
@Data
public class CavyConfig {
    private ServerConfig server;
    private int maxJobCount = 10;
    private String baseDir;
    private LogConfig log;

    public String getHttpServerAddress() {
        return "http://" + server.getIp() + ":" + server.getPort();
    }
}
